//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.tool.btn;

import java.awt.event.MouseEvent;
import java.math.BigDecimal;
import java.util.Map;

import javax.swing.Icon;

import org.come.Jpanel.JadeUpJpanel;
import org.come.Jpanel.SetsynthesisJpanel;
import org.come.Jpanel.SynthesisJpanel;
import org.come.Jpanel.TransferJpanel;
import org.come.Jpanel.UpgradeJpanel;
import org.come.Jpanel.WashJpanel;
import org.come.Jpanel.WorkshopRefiningCardJpanel;
import org.come.Jpanel.WorkshopRefiningJpanel;
import org.come.bean.ConfigureBean;
import org.come.entity.Goodstable;
import org.come.model.Configure;
import org.come.until.CutButtonImage;
import org.come.until.UserMessUntil;

import com.updateNew.MyIsif;



public class WorkshopRefiningBtn extends MoBanBtn {
    private int caozuo;
    private WorkshopRefiningJpanel refiningJpanel;
    private SetsynthesisJpanel setsynthesisJpanel;
    private WorkshopRefiningCardJpanel cardJpanel;
    private WorkshopRefiningJpanel finingJpanel;

    public WorkshopRefiningBtn(String iconpath, int type, int caozuo, WorkshopRefiningJpanel refiningJpanel) {
        super(iconpath, type);
        this.caozuo = caozuo;
        this.refiningJpanel = refiningJpanel;
    }

    public WorkshopRefiningBtn(String iconpath, int type, int caozuo, WorkshopRefiningCardJpanel cardJpanel,
                               WorkshopRefiningJpanel finingJpanel) {
        super(iconpath, type);
        // TODO Auto-generated constructor stub
        this.caozuo = caozuo;
        this.cardJpanel = cardJpanel;
        this.finingJpanel = finingJpanel;
    }

    public WorkshopRefiningBtn(String iconpath, int type, int caozuo, SetsynthesisJpanel setsynthesisJpanel) {
        super(iconpath, type);
        this.caozuo = caozuo;
        this.setsynthesisJpanel = setsynthesisJpanel;
    }





    @Override
    public void chooseyes() {
    }

    @Override
    public void chooseno() {
    }

    @Override
    public void nochoose(MouseEvent e) {
        ConfigureBean allConfigure = UserMessUntil.getConfigureBean();
        Map<BigDecimal, Configure> item = allConfigure.getAllConfigure();
        Configure configure = item.get(new BigDecimal(1));
        if ("水墨UI".equals(MyIsif.getStyle())) {

            try {
                switch (caozuo) {
                    case 1:
                        finingJpanel.getBtnEqui().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K30.png"));
                        if (!"3".equals(configure.getLzjskg())) {
                            finingJpanel.getBtnAcc().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K31.png"));
                            finingJpanel.getBtnRefiners().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K33.png"));
                            finingJpanel.getBtnSetsynthesis().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K35.png"));
                            if ("开".equals(configure.getBsqhkg())) {
                                finingJpanel.getBtnGemRefinery().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K47.png"));
                            }
                            cardJpanel.getEquiJpanel().changeFrom(caozuo);
                            cardJpanel.getCar().show(cardJpanel, "l1");
                        }
                        break;
                    case 2:
                        finingJpanel.getBtnEqui().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K29.png"));
                        if (!"3".equals(configure.getLzjskg())) {
                            finingJpanel.getBtnAcc().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K32.png"));
                            finingJpanel.getBtnRefiners().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K33.png"));
                            finingJpanel.getBtnSetsynthesis().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K35.png"));
                            if ("开".equals(configure.getBsqhkg())) {
                                finingJpanel.getBtnGemRefinery().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K47.png"));
                            }
                            cardJpanel.getEquiJpanel2().changeFrom(caozuo);
                            cardJpanel.getCar().show(cardJpanel, "l2");
                        }
                        break;
                    case 3:
                        finingJpanel.getBtnEqui().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K29.png"));
                        if (!"3".equals(configure.getLzjskg())) {
                            finingJpanel.getBtnAcc().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K31.png"));
                            finingJpanel.getBtnRefiners().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K34.png"));
                            finingJpanel.getBtnSetsynthesis().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K35.png"));
                            if ("开".equals(configure.getBsqhkg())) {
                                finingJpanel.getBtnGemRefinery().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K47.png"));
                            }
                            cardJpanel.getCar().show(cardJpanel, "l3");
                        }
                        break;
                    case 4:
                        finingJpanel.getBtnEqui().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K29.png"));
                        if (!"3".equals(configure.getLzjskg())) {
                            finingJpanel.getBtnAcc().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K31.png"));
                            finingJpanel.getBtnRefiners().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K33.png"));
                            finingJpanel.getBtnSetsynthesis().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K36.png"));
                            if ("开".equals(configure.getBsqhkg())) {
                                finingJpanel.getBtnGemRefinery().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K47.png"));
                            }
                            cardJpanel.getCar().show(cardJpanel, "l4");
                        }
                        break;
                    case 5:
                        finingJpanel.getBtnEqui().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K29.png"));
                        if (!"3".equals(configure.getLzjskg())) {
                            finingJpanel.getBtnAcc().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K31.png"));
                            finingJpanel.getBtnRefiners().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K33.png"));
                            finingJpanel.getBtnSetsynthesis().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K35.png"));
                            if ("开".equals(configure.getBsqhkg())) {
                                finingJpanel.getBtnGemRefinery().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K48.png"));
                            }
                            cardJpanel.getCar().show(cardJpanel, "l5");
                            cardJpanel.getGemRefineryMainJpanel().initView(-1);
                        }
                        break;
                    case 10:// 合成10
                        UpgradeJpanel.clearInterface();
                        setsynthesisJpanel.getLabSynthesis().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K38.png"));
                        setsynthesisJpanel.getLabWash().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K39.png"));
                        setsynthesisJpanel.getLabUpgrade().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K41.png"));
                        setsynthesisJpanel.getLabJadeUp().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K43.png"));
                        setsynthesisJpanel.getLabTransfer().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K45.png"));
                        setsynthesisJpanel.getCardJpanel().getCar().show(setsynthesisJpanel.getCardJpanel(), "l1");
                        break;
                    case 11:// 洗炼11
                        UpgradeJpanel.clearInterface();
                        setsynthesisJpanel.getLabSynthesis().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K37.png"));
                        setsynthesisJpanel.getLabWash().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K40.png"));
                        setsynthesisJpanel.getLabUpgrade().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K41.png"));
                        setsynthesisJpanel.getLabJadeUp().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K43.png"));
                        setsynthesisJpanel.getLabTransfer().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K45.png"));
                        setsynthesisJpanel.getCardJpanel().getCar().show(setsynthesisJpanel.getCardJpanel(), "l2");
                        break;
                    case 12:// 套装升级12
                        UpgradeJpanel.clearInterface();
                        setsynthesisJpanel.getLabSynthesis().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K37.png"));
                        setsynthesisJpanel.getLabWash().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K39.png"));
                        setsynthesisJpanel.getLabUpgrade().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K42.png"));
                        setsynthesisJpanel.getLabJadeUp().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K43.png"));
                        setsynthesisJpanel.getLabTransfer().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K45.png"));
                        setsynthesisJpanel.getCardJpanel().getCar().show(setsynthesisJpanel.getCardJpanel(), "l3");
                        break;
                    case 13:// 玉符升级13
                        UpgradeJpanel.clearInterface();
                        setsynthesisJpanel.getLabSynthesis().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K37.png"));
                        setsynthesisJpanel.getLabWash().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K39.png"));
                        setsynthesisJpanel.getLabUpgrade().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K41.png"));
                        setsynthesisJpanel.getLabJadeUp().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K44.png"));
                        setsynthesisJpanel.getLabTransfer().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K45.png"));

                        UpgradeJpanel.setGoodstable(null);
                        UpgradeJpanel.getLabtz2().setIcon(null);
                        setsynthesisJpanel.getCardJpanel().getCar().show(setsynthesisJpanel.getCardJpanel(), "l4");
                        break;
                    case 14:// 拆解/转移 14
                        UpgradeJpanel.clearInterface();
                        setsynthesisJpanel.getLabSynthesis().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K37.png"));
                        setsynthesisJpanel.getLabWash().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K39.png"));
                        setsynthesisJpanel.getLabUpgrade().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K41.png"));
                        setsynthesisJpanel.getLabJadeUp().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K43.png"));
                        setsynthesisJpanel.getLabTransfer().setIcons(CutButtonImage.cuts("skin/8100226/newbutton/K46.png"));
                        setsynthesisJpanel.getCardJpanel().getCar().show(setsynthesisJpanel.getCardJpanel(), "l5");
                        break;
                    default:
                        break;
                }

            } catch (Exception e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }
        } else {
            try {
                if (this.caozuo == 1) {
                    this.refiningJpanel.getBtnEqui().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/refinEquipMenu.png"));
                    if (!"3".equals(configure.getLzjskg())) {
                        this.refiningJpanel.getBtnAcc().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unRefinAccMenu.png"));
                        if ("开".equals(configure.getBsqhkg())) {
                            this.refiningJpanel.getBtnMenuGem().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unGemMenu.png"));
                        }
                        this.refiningJpanel.getBtnRefiners().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unRefinWareMenu.png"));
                        this.refiningJpanel.getBtnSetsynthesis().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unSuitComMenu.png"));
                        this.refiningJpanel.getCardJpanel().getCar().show(this.refiningJpanel.getCardJpanel(), "l1");
                        this.refiningJpanel.getCardJpanel().getEquiJpanel().changeFrom(this.caozuo);
                    }
                } else if (this.caozuo == 2) {
                    this.refiningJpanel.getBtnEqui().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unRefinEquipMenu.png"));
                    if (!"3".equals(configure.getLzjskg())) {
                        this.refiningJpanel.getBtnAcc().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/refinAccMenu.png"));
                        this.refiningJpanel.getBtnRefiners().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unRefinWareMenu.png"));
                        this.refiningJpanel.getBtnSetsynthesis().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unSuitComMenu.png"));
                        if ("开".equals(configure.getBsqhkg())) {
                            this.refiningJpanel.getBtnMenuGem().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unGemMenu.png"));
                        }
                        this.refiningJpanel.getCardJpanel().getCar().show(this.refiningJpanel.getCardJpanel(), "l2");
                        this.refiningJpanel.getCardJpanel().getEquiJpanel2().changeFrom(this.caozuo);
                    }
                } else if (this.caozuo == 3) {
                    this.refiningJpanel.getBtnEqui().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unRefinEquipMenu.png"));
                    if (!"3".equals(configure.getLzjskg())) {
                        this.refiningJpanel.getBtnAcc().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unRefinAccMenu.png"));
                        this.refiningJpanel.getBtnRefiners().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/refinWareMenu.png"));
                        this.refiningJpanel.getBtnSetsynthesis().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unSuitComMenu.png"));
                        if ("开".equals(configure.getBsqhkg())) {
                            this.refiningJpanel.getBtnMenuGem().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unGemMenu.png"));
                        }
                        this.refiningJpanel.getCardJpanel().getCar().show(this.refiningJpanel.getCardJpanel(), "l3");
                    }
                } else if (this.caozuo == 4) {
                    this.refiningJpanel.getBtnEqui().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unRefinEquipMenu.png"));
                    if (!"3".equals(configure.getLzjskg())) {
                        this.refiningJpanel.getBtnAcc().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unRefinAccMenu.png"));
                        this.refiningJpanel.getBtnRefiners().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unRefinWareMenu.png"));
                        this.refiningJpanel.getBtnSetsynthesis().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/suitComMenu.png"));
                        if ("开".equals(configure.getBsqhkg())) {
                            this.refiningJpanel.getBtnMenuGem().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unGemMenu.png"));
                        }
                        this.refiningJpanel.getCardJpanel().getCar().show(this.refiningJpanel.getCardJpanel(), "l4");
                    }
                } else if (this.caozuo == 5) {
                    this.refiningJpanel.getBtnEqui().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unRefinEquipMenu.png"));
                    if (!"3".equals(configure.getLzjskg())) {
                        this.refiningJpanel.getBtnAcc().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unRefinAccMenu.png"));
                        this.refiningJpanel.getBtnRefiners().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unRefinWareMenu.png"));
                        this.refiningJpanel.getBtnSetsynthesis().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/unSuitComMenu.png"));
                        if ("开".equals(configure.getBsqhkg())) {
                            this.refiningJpanel.getBtnMenuGem().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/gemMenu.png"));
                        }
                        this.refiningJpanel.getCardJpanel().getCar().show(this.refiningJpanel.getCardJpanel(), "l5");
                        this.refiningJpanel.getCardJpanel().getGemRefineryMainJpanel().initView(-1);
                    }
                } else if (this.caozuo == 10) {
                    SynthesisJpanel.clearInterface();
                    this.setsynthesisJpanel.getCardJpanel().getCar().show(this.setsynthesisJpanel.getCardJpanel(), "l1");
                    this.setsynthesisJpanel.getLabSynthesis().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_1.png"));
                    this.setsynthesisJpanel.getLabWash().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_2.png"));
                    this.setsynthesisJpanel.getLabUpgrade().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_4.png"));
                    this.setsynthesisJpanel.getLabJadeUp().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_6.png"));
                    this.setsynthesisJpanel.getLabTransfer().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_8.png"));
                } else if (this.caozuo == 11) {
                    WashJpanel.clearInterface();
                    this.setsynthesisJpanel.getCardJpanel().getCar().show(this.setsynthesisJpanel.getCardJpanel(), "l2");
                    this.setsynthesisJpanel.getLabSynthesis().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_0.png"));
                    this.setsynthesisJpanel.getLabWash().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_3.png"));
                    this.setsynthesisJpanel.getLabUpgrade().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_4.png"));
                    this.setsynthesisJpanel.getLabJadeUp().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_6.png"));
                    this.setsynthesisJpanel.getLabTransfer().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_8.png"));
                } else if (this.caozuo == 12) {
                    UpgradeJpanel.clearInterface();
                    UpgradeJpanel.setGoodstable((Goodstable) null);
                    UpgradeJpanel.getLabtz2().setIcon((Icon) null);
                    this.setsynthesisJpanel.getCardJpanel().getCar().show(this.setsynthesisJpanel.getCardJpanel(), "l3");
                    this.setsynthesisJpanel.getLabSynthesis().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_0.png"));
                    this.setsynthesisJpanel.getLabWash().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_2.png"));
                    this.setsynthesisJpanel.getLabUpgrade().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_5.png"));
                    this.setsynthesisJpanel.getLabJadeUp().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_6.png"));
                    this.setsynthesisJpanel.getLabTransfer().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_8.png"));
                } else if (this.caozuo == 13) {
                    JadeUpJpanel.clearInterface();
                    this.setsynthesisJpanel.getCardJpanel().getCar().show(this.setsynthesisJpanel.getCardJpanel(), "l4");
                    this.setsynthesisJpanel.getLabSynthesis().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_0.png"));
                    this.setsynthesisJpanel.getLabWash().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_2.png"));
                    this.setsynthesisJpanel.getLabUpgrade().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_4.png"));
                    this.setsynthesisJpanel.getLabJadeUp().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_7.png"));
                    this.setsynthesisJpanel.getLabTransfer().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_8.png"));
                } else if (this.caozuo == 14) {
                    TransferJpanel.clearInterface();
                    this.setsynthesisJpanel.getCardJpanel().getCar().show(this.setsynthesisJpanel.getCardJpanel(), "l5");
                    this.setsynthesisJpanel.getLabSynthesis().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_0.png"));
                    this.setsynthesisJpanel.getLabWash().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_2.png"));
                    this.setsynthesisJpanel.getLabUpgrade().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_4.png"));
                    this.setsynthesisJpanel.getLabJadeUp().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_6.png"));
                    this.setsynthesisJpanel.getLabTransfer().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/setsynthesis_9.png"));
                }
            } catch (Exception var3) {
                var3.printStackTrace();
            }
        }

    }
}
